package com.atguigu.designpattern.decorator;

/**
* @program: springcloud
* @description: 装饰B
* @author: wangjun
* @create: 2021-05-19
**/
public class ConcreteDecoratorB extends Decorator{

    @Override
    public void operation() {
        super.operation();
        addedBehavior();
        System.out.println("ConcreteDecoratorB，，，，装饰B类，操作");
    }

    public void addedBehavior(){
        System.out.println("ConcreteDecoratorB，，，，，，子类B，addedBehavior方法");
    }
}
